package so.sia.util;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class UrlEncoder {
	public static String eucFormat(String tmp){
		String euc = "";
		try {
			euc = URLEncoder.encode(tmp, "EUC-KR");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return euc;
	}
	
	public static String utfFormat(String tmp){
		String euc = "";
		try {
			euc = URLEncoder.encode(tmp, "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return euc;
	}
}
